<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
</head>
<body>
<c:set var="h" value="${sessionScope.hoa}" />

<form action="LoadProducts" method="post">
	<table border="1" align="center">
		<tr>
			<td>Mã hoa</td>
			<td><input type="text" name="txtMahoa" value="${h.id }" readonly="readonly" ></td>		
		</tr>
		<tr>
			<td>Mã loai</td>
			<td><input type="text" name="txtMaloai" value="${h.type_id }" readonly="readonly"></td>		
		</tr>
		<tr>
			<td>Tên hoa</td>
			<td><input type="text" name="txtTenhoa" value="${h.name }" readonly="readonly"></td>		
		</tr>
		
		<tr>
			<td>Giá</td>
			<td><input type="text" name="txtGia" value="${h.price }" readonly="readonly"></td>
		</tr>
		
		<tr>
			<td>Số lượng</td>
			<td>
			<input type="text" name="txtSoluong" value="${h.quantities }" /></td>
		</tr>
		<tr>
			<td colspan="2">
				<c:if test="${h.quantities < 1}">
					<h3><c:out value="${tb }" /></h3>
				</c:if>
			</td>
		
		</tr>
		<tr>
			<td>
			<input type ="hidden" name="action" value="dongymua">
			<input type="submit" value="Mua">
			</td>
			<td><input type="reset" value="Hủy"></td>
		</tr>
	
	
	</table>

</form>

</body>
</html>